package com.aurora.oa.work.view;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.aurora.oa.R;

/**
 * Created by Administrator on 2017/3/30 0030.
 */
public class SeeLogFragment extends Fragment implements View.OnClickListener{

    private LinearLayout ll_my_send;
    private LinearLayout ll_my_receive;
    private Activity mAct;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mAct = getActivity();
        View view = inflater.inflate(R.layout.fragment_see_log,container,false);
        ll_my_send = (LinearLayout) view.findViewById(R.id.ll_my_send);
        ll_my_receive = (LinearLayout) view.findViewById(R.id.ll_my_receive);
        ll_my_send.setOnClickListener(this);
        ll_my_receive.setOnClickListener(this);
        return  view;
    }

    @Override
    public void onClick(View view) {

        switch(view.getId()){
            case R.id.ll_my_send:
                //跳转到我发送的界面
                Intent mySendIntent = new Intent(mAct,WorkLogMySendActivity.class);
                startActivity(mySendIntent);
                break;
            case R.id.ll_my_receive:
                Intent myReceiveIntent = new Intent(mAct,WorkLogMyReceiveActivity.class);
                startActivity(myReceiveIntent);
                break;
        }

    }
}
